package com.zc.mapper;

import com.zc.model.EbNews;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsMapper {

    List<EbNews> findByPage(@Param("from") Integer from, @Param("pageSize") Integer pageSize);

    Integer save(EbNews ebNews);

    int remove(int enId);
//    根据新闻的主键进项更新新闻信息

    Integer updateByPrimaryKey(EbNews ebNews);

}
